const defaultValue = () => {
	return {
		basicInfoDefault: {
			threeListId: '',
			threeListCode: '',
			threeListName: '',
			threeListStatus: '',
			applicationCode: '',
			responsibleDeptName: '',
			responsibleDept: '',
			headName: '',
			headPhone: '',
			belongDomain: '',
			deployPorts: '',
			isWorkTeam: '',
			budgetAmount: 0,
			constructType: [],
			existingApplicationName: '',
			specialTeamFormation: '',
			belongingRunway: '',
			teamLeaderUnit: '',
		},
		integratedApplicationListDefault: {
			integratedApplicationName: '',
			competentDepartment: '',
		},
		countryDefault: {
			partyDecisionDemandId: '',
			decisionDemandType: '',
			demandContent: '',
			fileId: '',
		},
		cityDefault: {
			cityGovernmentDemandId: '',
			cityGovernmentDemandType: '',
			demandContent: '',
			fileId: '',
		},
		pepoleDefault: {
			massesDemandId: '',
			demandDetail: '',
			solveTheProblem: '',
			fileId: '',
		},
		enterpriseDefault: {
			enterpriseDemandId: '',
			demandDetail: '',
			solveTheProblem: '',
			fileId: '',
		},
		substrateDefault: {
			basicLevelDemandId: '',
			demandDetail: '',
			solveTheProblem: '',
			fileId: '',
		},
		areaDefault: {
			reformDemandId: '',
			reformDemandType: '',
			demandContent: '',
			fileId: '',
		},
		reformListDefault: {
			reformListId: '',
			reformMatters: '',
			specificMeasures: '',
		},
		fileListDefault: {
			threeListFileId: '',
			officialDocuments: '',
			threeList: '',
			integrationDiagram: '',
			requirementsDiagrams: '',
			architectureDiagram: '',
		},
		coreDefault: {
			senceListCoreId: '',
			coreBusiness: '',
			lastFlowDescription: '',
			nowFlowDescription: '',
			simpFlowDescription: '',
			flowImageFileId: '',
		},
		funcServerDefault: {
			serviceObject: '',
			sceneLevelFunctionId: '',
		},
		funcManageDefault: {
			manageClient: '',
			function: '',
		},
		firstDefalut: {
			sceneOneLevelName: '',
			businessCollaboration: '',
			dataSharing: '',
		},
		secondDefault: {
			sceneTwoLevelListId: '',
			sceneTwoLevelName: '',
			presetFunction: '',
			dataSources: [],
			dataResourceName: '',
			serviceClient: '',
		},
		sourceDefault: {
			managerUnit: '',
			systemName: '',
			dataResourceName: '',
		},
		menageDefault: {
			involveLevel: '',
			involveDepart: '',
			responsibilitiesFulfilled: '',
		},
	};
};

const setKeyValue = (obj1: any, obj2: any) => {
	let obj3: any = {};
	for (let key in obj1) {
		if (obj2.hasOwnProperty(key)) {
			obj3[key] = obj2[key];
		}
	}
	return { ...obj1, ...obj3 };
};
export { setKeyValue, defaultValue };
